/// 当前页结果集
class SellRecordPageResponseDto {
  /// 订单号
  final String? orderNum;
  /// 卡种类
  final String? cardType;
  /// 卡分类
  final String? cardCategory;
  /// 卡片额度
  final int? cardAmount;
  /// 卡片价值
  final int? cashValue;
  /// 卡片地址
  final List<String>? cardUrlList;
  /// 卡片代码
  final List<String>? cardCodeList;
  /// 售卖时间
  final String? createTime;
  /// 审批备注
  final String? remark;
  /// 状态，1-核销通过，0-核销拒绝，2-待核销
  final int? status;

  SellRecordPageResponseDto({
    this.orderNum,
    this.cardType,
    this.cardCategory,
    this.cardAmount,
    this.cashValue,
    this.cardUrlList,
    this.cardCodeList,
    this.createTime,
    this.remark,
    this.status,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (orderNum != null) data['orderNum'] = orderNum;
    if (cardType != null) data['cardType'] = cardType;
    if (cardCategory != null) data['cardCategory'] = cardCategory;
    if (cardAmount != null) data['cardAmount'] = cardAmount;
    if (cashValue != null) data['cashValue'] = cashValue;
    if (cardUrlList != null) data['cardUrlList'] = cardUrlList;
    if (cardCodeList != null) data['cardCodeList'] = cardCodeList;
    if (createTime != null) data['createTime'] = createTime;
    if (remark != null) data['remark'] = remark;
    if (status != null) data['status'] = status;
    return data;
  }

  factory SellRecordPageResponseDto.fromJson(Map<String, dynamic> json) {
    return SellRecordPageResponseDto(
      orderNum: json['orderNum'],
      cardType: json['cardType'],
      cardCategory: json['cardCategory'],
      cardAmount: json['cardAmount'],
      cashValue: json['cashValue'],
      cardUrlList: json['cardUrlList'] != null ? List<String>.from(json['cardUrlList']) : null,
      cardCodeList: json['cardCodeList'] != null ? List<String>.from(json['cardCodeList']) : null,
      createTime: json['createTime'],
      remark: json['remark'],
      status: json['status'],
    );
  }
}